﻿using QRCode_MS.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QRCode_MS.Models
{
    /// <summary>
    /// 矩形模型类
    /// </summary>
    public class RectangleModel : BaseModel
    {
        private double _rectangleWidth;
        private double _rectangleHeight;
        private double _rectangleLeft;
        private double _rectangleTop;

        public double RectangleWidth
        {
            get { return _rectangleWidth; }
            set { _rectangleWidth = value; RiseProperty(nameof(RectangleWidth)); }
        }

        public double RectangleHeight
        {
            get { return _rectangleHeight; }
            set { _rectangleHeight = value; RiseProperty(nameof(RectangleHeight)); }
        }

        public double RectangleLeft
        {
            get { return _rectangleLeft; }
            set { _rectangleLeft = value; RiseProperty(nameof(RectangleLeft)); }
        }

        public double RectangleTop
        {
            get { return _rectangleTop; }
            set { _rectangleTop = value; RiseProperty(nameof(RectangleTop)); }
        }


        public RectangleModel()
        {
            RectangleWidth = 0;
            RectangleHeight = 0;
            RectangleLeft = 0;
            RectangleTop = 0;
        }

        public void InitRectangle()
        {
            RectangleWidth = 0;
            RectangleHeight = 0;
            RectangleLeft = 0;
            RectangleTop = 0;
        }



    }
}
